package org.example.service;

import org.example.entity.Dormitory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.form.SearchForm;
import org.example.vo.PageVO;
import org.example.vo.ResultVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2024-10-31
 */
public interface DormitoryService extends IService<Dormitory> {

    ResultVO availableList();

    PageVO list(int page, int size);

    PageVO search(SearchForm searchForm);

    boolean deleteById(int id);

    List<Dormitory> findDormitoryByBuildingId(int buildingId);
}
